#define _CRT_SECURE_NO_WARNINGS 1
#include "Stack.h"


void StackTest()
{
	Stack stack;
	StackInit(&stack);
	StackPush(&stack, 1);
	StackPush(&stack, 2);
	StackPush(&stack, 3);
	StackPush(&stack, 4);
	StackPush(&stack, 5);
	while (!StackEmpty(&stack))
	{
		printf("%d ", StackTop(&stack));
		StackPop(&stack);
	}

	StackPop(&stack);
	StackPop(&stack);
	StackPop(&stack);
	StackPop(&stack);
	//StackPop(&stack);
	//StackPop(&stack);

	StackDestroy(&stack);
}

int main()
{
	StackTest();
	return 0;
}

	